package com.terrynoya.fight.system.physics
{
	import com.terrynoya.geom.MVector2D;

	public class ForceUtil
	{
		public function ForceUtil()
		{
			
		}
		
		public static function spring(k:Number,vec:MVector2D):MVector2D
		{
			if(vec.length > 0)
			{
				return vec.scale(-k)
			}
			else
			{
				return new MVector2D();				
			}
		}
	}
}